package me.example.web.model;

import lombok.*;

import java.util.ArrayList;

/**
 * Created by junli on 2018/1/26.
 */
@Data
@Builder
@ToString(callSuper = false, exclude = "name")
public class MainBean {

    private Integer id;
    private String name;
    private String trueName;


    @Synchronized
    public static MainBean notNullName( MainBean mainBean) {
        val example = new ArrayList<String>();

        System.out.println(mainBean.getName());
        return mainBean;
    }


    public static void main(String[] args) {


        MainBean mainBean = MainBean.builder().build();
        System.out.println(mainBean.toString());
    }
}
